mybin:test.c
	gcc $^ -o $@
.PHONY:clean
clean:
	rm -f mybin


#cc=gcc
#src=test.c
#target=mybin
#
#$(target):$(src)
#	$(cc) $(src) -o $(target)
#.PHONY:clean
#clean:
#	rm -f mybin
#
#
#

#mybin:test.c
#	@gcc test.c -o mybin
#	@echo "编译成功"
#.PHONY:clean
#clean:
#	@ rm -f mybin	
#	@echo "清理成功"
